    <!--top-->

    <style>
        .top1 a{ position: relative;}
        .top1 a:hover{
          color: red
         }
        .message-num {
            position: absolute;
            left: 40px;
            top: -7px;
            width: 17px;
            height: 18px;
            background-color: #d45d51;
            border-radius: 100%;
            text-align: center; padding-left:2px 
        }
        .fa-lg{margin-right: 10px;}
        .message-num{font-size:12px;color: #ffffff}
        .x-info{margin-top:3px;margin-right: 3px;}
        .dropdown-menu{border: 1px solid #000000;width: 110px;position: absolute;top: 25px;left: 0px;height: 150px;}
        .open{display:block} 

        .gouwuche{position: absolute;
    left: 70px;
    top: -8px;
    width: 18px;
    height: 18px;
    background-color: #d45d51;
    border-radius: 100%;
    text-align: center;
    line-height: 18px;
    color: #fff; 
    font-size: 12px}
    </style>
    <link type="text/css" rel="stylesheet" href="../Public/font-awesome/css/font-awesome.css">

    <div class="top">
      
        <div class="top1">
          <div class="widthBlock">
                   
           <if condition="$_SESSION['userr'] eq ''">
              <a href="{:U('User/login')}">登录</a>
              <a href="{:U('User/register')}">注册</a>
           <elseif condition="$_SESSION['zhuangtai'] eq 0"/>
              <if condition="$_SESSION['zt'] eq 0"> 
               <a href="{:U('User/gouwu')}">购物车
                <gt name="gwcount" value="0"><div class="gouwuche">{$gwcount}</div></gt>
               </a>
              <a href="{:U('User/sheji')}">申请设计师</a>
              <else/>
                  <a href="{:U('User/gouwu')}">购物车
                   <gt name="gwcount" value="0"><div class="gouwuche">{$gwcount}</div></gt>

                  </a>
                <a href="{:U('User/shenhe')}">申请设计师</a>
              </if>
              <a class="" href="{:U('User/person')}">   

               <gt name="num" value="0">
                  <div class="message-num" data-role="now-message-num"  style=""><div class="x-info">{$num}</div></div>
                  </gt>
                  <i class="fa fa-comment fa-lg"></i>
                  {$_SESSION['userr']}
              </a>
              <a href="{:U('User/loginout')}" target="_top" class="link2">退出</a>
          <else/>
              <if condition="$_SESSION['zt'] eq 2"> 
              <a href="{:U('User/gouwu')}">购物车
               <gt name="gwcount" value="0"><div class="gouwuche">{$gwcount}</div></gt>
               </a>
              <a href="{:U('User/shenhe')}">申请设计师</a>
              </if>
      <a href="{:U('User/person')}" >
                   <div class="main-menu">
                   <gt name="num" value="0">
                   <div class="message-num" data-role="now-message-num"  style=""><div class="x-info">{$num}</div></div>
                   </gt>
                   <i class="fa fa-comment fa-lg"></i>
                   {$_SESSION['userr']}
                   </div>


               </a>
            <a href="{:U('User/loginout')}" target="_top" class="link2">退出</a>
          </if>
              <!-- <a href="#">我要装修</a> -->
              <span>咨询中心：{$info1.dianhua}</span>
            </div>
        </div>
        <form method="post" action="{:U('search')}">
        <div class="top2">
          <div class="widthBlock">
              <a href="{:U('Index/index')}"><img src="../Public/images/logo.jpg"></a>
                <input style="border: 1px solid #49bf9d;" type="text" name="title" placeholder="商品名称,风格,户型"><button type="submit">搜索</button>
            </div>
        </div>
        </form>
        
        <div class="top3">
          <div class="widthBlock">
              <ul>
                  <li id="menu1">
                      <a href="{:U('Index/index')}">首页</a>
                    </li>
                    <li id="menu2">
                      <a href="{:U('Shop/index')}">商城</a>
                    </li>
                    <li id="menu3">
                      <a href="{:U('Sheji/index')}">设计师</a>
                    </li>
                    <li id="menu4">
                      <a href="{:U('Quanzi/index')}">圈子</a>
                    </li>
                    <li id="menu5">
                      <a href="{:U('Zixun/index')}">资讯</a>
                    </li>
                    <li id="menu6">
                      <a href="{:U('Tiyan/index')}">体验门店</a>
                    </li>
                    <li class="clear"></li>
                </ul>
            </div>
        </div>
        
    </div>

    <!--top end-->


